Difference between EnableViewState and ViewStateMode properties
1398
25-Aug-2017
Niraj Kumar Mishra
25-Aug-20172. If you want to turn of ViewState for the entire page and only enable it for specific control on the page, then we have to use ViewStateMode property in conjunction with EnableViewState.
3. ViewSteteMode property is introduced in ASP.NET 4, where as EnableViewState exist from a long time.
4. If EnableViewState is to true, only then the ViewStateMode setting are applies, where as , if EnableViewStete is set to False then the control will not save its view state, regardless of the ViewStateMode setting. In short if EnableViewState set to False, ViewStateMode setting is not respected.